CC=gcc
CFLAGS=-Wall -g
LFLAGS=-L ./include

src=$(wildcard *.c)
targets=$(patsubst %.c, %, $(src))

all:$(targets)

$(targets):%:%.c
	$(CC) $< -o $@ $(CFLAGS) $(LFLAGS)

.PHONY:clean all
clean:
	- rm -rf $(targets) *.o  -f